function buildError(code, msg) {
  return {
    code,
    msg,
  };
}

const ERRORS = {
    INVALID_REQUEST: buildError(1400, 'Invalid request'),
    NOT_FOUND: buildError(1404, 'Not found'),
    INTERNAL_SERVER_ERROR: buildError(1500, 'Internal server error'),
};

module.exports = ERRORS;